﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master" AutoEventWireup="true" CodeFile="phoneBook.aspx.cs" Inherits="PublicInformationModule_phoneBook" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link type="text/css" rel="Stylesheet" href="../css/PbInfo.css" />
<title>通讯录</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc:Navigator Text="通讯录" runat="server" />
<div>
<div id="PhoneBook_top">
<a>部门：</a>
    <asp:TextBox ID="txtDepId" runat="server" Width="141px"></asp:TextBox>
<a>岗位：</a>
    <asp:DropDownList ID="ddlPositon" runat="server" Width="108px">
    </asp:DropDownList>
<a>姓名：</a>
    <asp:TextBox ID="txtUserName" runat="server" Width="134px"></asp:TextBox>
    <asp:ImageButton ID="ibtnSearch" runat="server" Height="20px" 
        ImageUrl="~/Images/search.gif" Width="30px" onclick="ibtnSearch_Click" />
</div>
<div id="PhoneBook_mid">
    <asp:GridView ID="gvPhoneBook" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AutoGenerateColumns="False" Font-Size="14px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="UserNo" HeaderText="员工编号" Visible="False">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="UserName" HeaderText="姓名">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="DepId" HeaderText="部门">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="PosId" HeaderText="岗位"  >
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="UserLandLine" HeaderText="座机">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="Email" HeaderText="Email">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px"/>
            </asp:BoundField>
            <asp:BoundField DataField="UserMobile" HeaderText="手机">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"  Width="120px"/>
            </asp:BoundField>
            <asp:BoundField DataField="UserAddr" HeaderText="地址">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="UserPostCode" HeaderText="邮编">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
            </asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
</div>
<div style="text-align:center;color:red;margin-top:20px;font-size:14px;"><asp:Label ID="lblNone" runat="server" Text="抱歉，没有符合条件的通讯录！" Visible="false"></asp:Label></div>
<div id="PhoneBook_bottom">
<div style="float:left;text-align:center;margin-left:150px;">
    第<asp:Label ID="lblCurrentPageIndex" runat="server" ></asp:Label>页，共<asp:Label
        ID="lblPageCount" runat="server" ></asp:Label>页</div>
<div style="float:right;margin-right:200px;">
    <webdiyer:AspNetPager ID="anpPhone" runat="server" 
        AlwaysShowFirstLastPageNumber="True" FirstPageText="首页" NextPageText="下一页" 
        PrevPageText="上一页" ShowBoxThreshold="10" ShowCustomInfoSection="Left" 
        CurrentPageButtonPosition="Beginning" CustomInfoSectionWidth="20%" 
        LastPageText="尾页" ShowMoreButtons="False" ShowPageIndex="True" 
        ShowPageIndexBox="Auto" Wrap="False" 
        onpagechanging="anpPhone_PageChanging" PageSize="4" 
        NavigationButtonType="Text" CssClass="anpPhone" CustomInfoHTML="" >
    </webdiyer:AspNetPager>
    </div>
</div>
<div style="height:100px;"></div>

</asp:Content>

